package com.co.webmagic;

import com.co.common.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author ldl.plus
 * @date 2020年07月01日  9:37
 */
@SpringBootApplication
@EnableScheduling
@ComponentScan(basePackages = "com.co")
public class WebMagicApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebMagicApplication.class, args);
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker(11, 11);
    }
}
